package com.ruoyi.project.system.trcode.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.trcode.mapper.PaeaParaAuditTrcodeMapper;
import com.ruoyi.project.system.trcode.domain.PaeaParaAuditTrcode;
import com.ruoyi.project.system.trcode.service.IPaeaParaAuditTrcodeService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 监控交易码Service业务层处理
 *
 * @author ruoyi
 * @date 2020-03-12
 */
@Service
public class PaeaParaAuditTrcodeServiceImpl implements IPaeaParaAuditTrcodeService
{
    @Autowired
    private PaeaParaAuditTrcodeMapper paeaParaAuditTrcodeMapper;

    /**
     * 查询监控交易码
     *
     * @param id 监控交易码ID
     * @return 监控交易码
     */
    @Override
    public PaeaParaAuditTrcode selectPaeaParaAuditTrcodeById(String id)
    {
        return paeaParaAuditTrcodeMapper.selectPaeaParaAuditTrcodeById(id);
    }

    /**
     * 查询监控交易码列表
     *
     * @param paeaParaAuditTrcode 监控交易码
     * @return 监控交易码
     */
    @Override
    public List<PaeaParaAuditTrcode> selectPaeaParaAuditTrcodeList(PaeaParaAuditTrcode paeaParaAuditTrcode)
    {
        return paeaParaAuditTrcodeMapper.selectPaeaParaAuditTrcodeList(paeaParaAuditTrcode);
    }

    /**
     * 新增监控交易码
     *
     * @param paeaParaAuditTrcode 监控交易码
     * @return 结果
     */
    @Override
    public int insertPaeaParaAuditTrcode(PaeaParaAuditTrcode paeaParaAuditTrcode)
    {
        return paeaParaAuditTrcodeMapper.insertPaeaParaAuditTrcode(paeaParaAuditTrcode);
    }

    /**
     * 修改监控交易码
     *
     * @param paeaParaAuditTrcode 监控交易码
     * @return 结果
     */
    @Override
    public int updatePaeaParaAuditTrcode(PaeaParaAuditTrcode paeaParaAuditTrcode)
    {
        return paeaParaAuditTrcodeMapper.updatePaeaParaAuditTrcode(paeaParaAuditTrcode);
    }

    /**
     * 删除监控交易码对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaAuditTrcodeByIds(String ids)
    {
        return paeaParaAuditTrcodeMapper.deletePaeaParaAuditTrcodeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除监控交易码信息
     *
     * @param id 监控交易码ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaAuditTrcodeById(String id)
    {
        return paeaParaAuditTrcodeMapper.deletePaeaParaAuditTrcodeById(id);
    }
}
